﻿using D20.Entities.Characters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace D20.UnitTests.Characters
{
    
    
    /// <summary>
    ///This is a test class for RelationshipTest and is intended
    ///to contain all RelationshipTest Unit Tests
    ///</summary>
    [TestClass()]
    public class RelationshipTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Target
        ///</summary>
        [TestMethod()]
        public void TargetTest()
        {
            Relationship target = new Relationship();
            Creature expected = new Monster();
            Creature actual;
            target.Target = expected;
            actual = target.Target;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Intensity
        ///</summary>
        [TestMethod()]
        public void IntensityTest()
        {
            Relationship target = new Relationship(); // TODO: Initialize to an appropriate value
            float expected = 123456; // TODO: Initialize to an appropriate value
            float actual;
            target.Intensity = expected;
            actual = target.Intensity;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for op_Inequality
        ///</summary>
        [TestMethod()]
        public void op_InequalityTest()
        {
            Relationship left = new Relationship(new Character(), 134);
            Relationship right = new Relationship(new NonPlayerCharacter(), 321); 
            bool expected = true;
            bool actual;
            actual = (left != right);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for op_Equality
        ///</summary>
        [TestMethod()]
        public void op_EqualityTest()
        {
            Character c = new NonPlayerCharacter();
            Relationship left = new Relationship(c, 134);
            Relationship right = new Relationship(c, 134);
            bool expected = true;
            bool actual;
            actual = (left == right);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for GetHashCode
        ///</summary>
        [TestMethod()]
        public void GetHashCodeTest()
        {
            Relationship target = new Relationship();
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetHashCode();
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest()
        {
            Character c = new NonPlayerCharacter();
            Relationship left = new Relationship(c, 134);
            Relationship right = new Relationship(c, 134);
            bool expected = true;
            bool actual;
            actual = left.Equals((object)right);
            Assert.AreEqual(expected, actual);
        }
    }
}
